package com.huawei.java.pojo;

/**
 * 迁移请求
 * @author 金昊霖
 */
public final class MigratingRequest {
    /**
     * 虚拟机编号
     */
    private final int virtualMachineId;

    /**
     * 迁移的服务器id(如果没有部署则为null)
     */
    private final int serverId;
    /**
     * 迁移的节点，0表示双节点部署，1表示布置在A节点，2表示布置在B节点
     */
    private final int node;

    public MigratingRequest(Integer virtualMachineId, Integer serverId, Integer node) {
        this.virtualMachineId = virtualMachineId;
        this.serverId = serverId;
        this.node = node;
    }

    public int getVirtualMachineId() {
        return virtualMachineId;
    }

    public int getServerId() {
        return serverId;
    }

    public int getNode() {
        return node;
    }
}
